const inquirer = require('inquirer')

const prompt = async () => {
    const result = await inquirer.prompt([
        {
            type: 'input',
            name: 'projectname',
            message: 'project name?'
        },
        {
            type: 'input',
            name: 'author',
            message: 'please tell me author?'
        },
        // {
        //     type: 'confirm',
        //     name: 'typescript',
        //     choices: ['Large', 'Standard', 'Small'],
        //     when: (data) => {
        //         return data.projectType === 'vue'
        //     },
        //     message: 'do you waant to use typescript?'
        // }
    ])
    return result;
}

module.exports = prompt